<template>
  <div class="oauth-layout">
    <header class="oauth-header">
      <div class="container">
        <div class="logo">
          <router-link to="/oauth">OAuth2示例应用</router-link>
        </div>
        <nav class="nav">
          <ul>
            <li>
              <a href="https://tools.ietf.org/html/rfc6749" target="_blank">OAuth2.0规范</a>
            </li>
            <li>
              <a href="https://github.com" target="_blank">GitHub</a>
            </li>
          </ul>
        </nav>
      </div>
    </header>
    
    <main class="oauth-main">
      <router-view></router-view>
    </main>
    
    <footer class="oauth-footer">
      <div class="container">
        <p>OAuth2.0授权演示应用 &copy; 2023 - 授权星域</p>
      </div>
    </footer>
  </div>
</template>

<style scoped>
.oauth-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.oauth-header {
  background-color: #24292e;
  color: white;
  padding: 15px 0;
}

.oauth-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  margin-left: 20px;
}

.nav a {
  color: #c8c9ca;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.nav a:hover {
  color: white;
}

.oauth-main {
  flex: 1;
}

.oauth-footer {
  background-color: #f5f5f5;
  color: #666;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

.oauth-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
</style> 